<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="telephone=no" name="format-detection"/>
    <title>产品详情</title>
    <link rel="stylesheet" href="css/H-ui.reset.css">
    <link rel="stylesheet" href="css/tongyong.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/alert.css">
    <link rel="stylesheet" href="css/selector.css">
    <style>
        body{
            background-color: #f1f1f1;
        }
    </style>
</head>
<body>
<header class="detail_header">
    <section class="detail_header_section">
        <div class="detail_name">
            <div class="detail_name_img">
                <img src="" alt="">
            </div>
            <div class="detail_name_text">
                <p class="detail_name_name"></p>
                <p>
                    利率最低 &nbsp;&nbsp;<span class="detail_rates"></span> 申请成功 &nbsp;&nbsp;<span class="detail_people"></span>人
                </p>
            </div>
        </div>
        <div class="detail_msg">
            <div>
                <p>额度</p>
                <p class="detail_limit"></p>
            </div>
            <hr>
            <div>
                <p>期限</p>
                <p class="days_section"></p>
            </div>
            <hr>
            <div>
                <p>参考利率</p>
                <p class="detail_loanrate">0.03%</p>
            </div>
        </div>
    </section>
</header>
<section class="detail_section">
    <section class="detail_section_bg">
        <div class="detail_loanmsg">
            <div>
                <p>金额</p>
                <p>
                    <input type="tel" class="detail_sum" value="" maxlength="6"> <span>元</span>
                </p>
            </div>
            <div>
                <p>期限</p>
                <ul class="lt_bar_panul">

                </ul>
                <img src="images/detail_04.png" alt="">
            </div>
        </div>
        <p class="repayment_sum">预计还款总额：<span class="repayment_sum_text">1045.6</span>元</p>
        <div class="apply_btn">
            <span>立即申请</span>
        </div>
        <div class="detail_condition">
            <div class="condition_list">
                <p>
                    <img src="images/detail_01.png" alt="">
                    <span>申请条件</span>
                </p>
                <p class="condition_text apply_term"></p>
            </div>
            <div class="condition_list">
                <p>
                    <img src="images/detail_02.png" alt="">
                    <span>借款流程</span>
                </p>
                <p class="condition_text apply_need"></p>
            </div>
            <div class="condition_list">
                <p>
                    <img src="images/detail_03.png" alt="">
                    <span>产品优势</span>
                </p>
                <p class="condition_text apply_points"></p>
            </div>
        </div>
    </section>
</section>

<script src="//cdn.bootcss.com/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.json-2.4.min.js"></script>
<script src="js/config.js"></script>
<script src="js/public.js"></script>
<script src="js/actionSheet.js"></script>
<script src="js/loading.js"></script>
<script type="text/javascript" src="js/alert.js"></script>
<script>
    $(function () {
        var productId = GetUrlParameter("id");
        product_detail(productId);

        $(".lt_bar_panul").click(function() {
            show();
        });

        $(".detail_sum").bind("input propertychange", function () {
            loadcaculate();
        });

        $(".apply_btn").click(function () {
            var goUrl = $(this).attr("url");
            window.location.href = goUrl;
            var prodNo = $(".detail_name_name").attr("marketnum");
            var chanNo = $(".detail_name_text").attr("channum");
            access_count(prodNo, chanNo, "42100002");
        });

    });

    function access_count(marketNum, chanNum, opType) {
        var phone = localStorage.getItem("phoneNo");
        var sourceType = "26600003";      //表示"微信"
        var appType = "25800009";         //表示"贷盟主"
        var qrCode = localStorage.getItem("qrCode");
        var url = urlLink + "/aSysVisitRecord/record";
        var paramData = {
            "params": {
                phoneNo: phone,
                prodNo: marketNum,
                pageId: "product_detail",
                opType: opType,
                sourceType: sourceType,
                chanNo: chanNum,
                qrCode: qrCode,
                appType: appType
            }
        };
        var dataStr = JSON.stringify(paramData);
        console.log(dataStr);
        ajaxFn(url, dataStr, sucFn, null, "post");
    }
    function sucFn(data) {
        console.log(data)
    }
</script>
</body>
</html>